package com.example.vueserver.vueserver.controller;

import com.example.vueserver.vueserver.bean.SysRole;
import com.example.vueserver.vueserver.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/rolemanage")
public class SysRoleController {
    @Autowired
    private SysRoleService sysRoleService;
    @RequestMapping("/listAll")
    public List<SysRole> listAll(){
        System.out.println("获取角色列表");
        return this.sysRoleService.listAll();
    }
}
